const express = require('express')
const router = express.Router()
const auth = require('@/middleware/auth.middleware')
const loginLogController = require('@/controllers/login_log.controller')

/**
 * 查询用户登录日志信息
 * @route GET /log/list
 * @group 登录日志管理
 * @param {number} pageNo.query.required
 * @param {number} pageSize.query.required
 * @returns {object} 200
 * @returns {Error}  default - Unexpected error
 * @security JWT
 */
router.get('/list', auth(), loginLogController.findLogList)

module.exports = router
